import { lazy } from 'react'
import { RouteListItem } from '../utils/types' 
const routes:Array<RouteListItem> = [
    {
        path:'/home',
        component:lazy(()=>import('../views/Home')),
        children:[
            {
                path:'/home/index',
                name:'首页',
                component:lazy(()=>import('../views/home/Index'))
            },
            {
                path:'/home/classify',
                name:'分类',
                component:lazy(()=>import('../views/home/Classify'))
            }
        ]
    },
    {
        path:'/',
        redirect:'/home'
    }
]

export default routes